
package com.thxrinfo.operate.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pig4cloud.pig.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商户充值记录表
 *
 * @author ct
 * @date 2023-03-09 14:02:13
 */
@Data
@TableName("t_merchant_recharge_log")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "商户充值记录表")
public class MerchantRechargeLog extends BaseEntity {
	//from  - on - join - where - group by - having -select - distinct - order by - limit

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description ="id")
    private Long id;

    /**
     * 商户id
     */
    @Schema(description ="商户id")
    private Long merchantId;

    /**
     * 充值金额
     */
    @Schema(description ="充值金额")
    private BigDecimal rechargeMoney;

    /**
     * 赠送金额
     */
    @Schema(description ="赠送金额")
    private BigDecimal giveMoney;

	@TableField(exist = false)
	private LocalDateTime beginTime;

	@TableField(exist = false)
	private LocalDateTime endTime;

}
